package com.demo.ftp;

import java.io.Serializable;

public class FtpProperty implements Serializable {
    private static final long serialVersionUID = 1L;
    private String ftpHost;
    private String ftpUserName;
    private String ftpPassword;
    private int ftpPort;
    private String ftpPath;
    private String ftpEncoding = "UTF-8";
    private String model;

    public FtpProperty() {
        this.model = models.PASSIVE.value();
    }

    public String getModel() {
        return this.model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getFtpHost() {
        return this.ftpHost;
    }

    public void setFtpHost(String ftpHost) {
        this.ftpHost = ftpHost;
    }

    public String getFtpUserName() {
        return this.ftpUserName;
    }

    public void setFtpUserName(String ftpUserName) {
        this.ftpUserName = ftpUserName;
    }

    public String getFtpPassword() {
        return this.ftpPassword;
    }

    public void setFtpPassword(String ftpPassword) {
        this.ftpPassword = ftpPassword;
    }

    public int getFtpPort() {
        return this.ftpPort;
    }

    public void setFtpPort(int ftpPort) {
        this.ftpPort = ftpPort;
    }

    public String getFtpPath() {
        return this.ftpPath;
    }

    public void setFtpPath(String ftpPath) {
        this.ftpPath = ftpPath;
    }

    public String getFtpEncoding() {
        return this.ftpEncoding;
    }

    public void setFtpEncoding(String ftpEncoding) {
        this.ftpEncoding = ftpEncoding;
    }

    public static enum models {
        PASSIVE("passive"),
        ACTIVE("active");

        private String value;

        private models(String value) {
            this.value = value;
        }

        public String value() {
            return this.value;
        }
    }
}